package com.yugao.fintech.draper.admin.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yugao.fintech.draper.admin.entity.SysUser;
import com.yugao.fintech.draper.admin.param.UserBO;
import com.yugao.fintech.draper.auth.dto.UserInfoVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserConvert {

	UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

	SysUser convert(UserInfoVO user);

	UserInfoVO convert(SysUser user);

	UserInfoVO convert(UserBO user);

	Page<UserInfoVO> convert(Page<SysUser> user);

}
